package com.jinzhi.jzweb.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.jinzhi.common.base.CoreServiceImpl;
import com.jinzhi.jzapi.training.pojo.ApplicationRecordVo;
import com.jinzhi.jzweb.dao.ApplicationRecordDao;
import com.jinzhi.jzweb.domain.ApplicationRecordDO;
import com.jinzhi.jzweb.service.ApplicationRecordService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 
 * <pre>
 * 应聘记录
 * </pre>
 * <small> 2020-02-24 21:00:11 | lance</small>
 */
@Service
public class ApplicationRecordServiceImpl extends CoreServiceImpl<ApplicationRecordDao, ApplicationRecordDO> implements ApplicationRecordService {
    @Override
    public Page<ApplicationRecordVo> selectListPage(int current, int number, Map map) {

        // 新建分页
        Page<ApplicationRecordVo> page = new Page<ApplicationRecordVo>(current, number);

        return page.setRecords(this.baseMapper.dyGetList(page,map));

    }
}
